package com.cr.mrapp.service.impl;

import com.cr.mrapp.dao.AdminDao;
import com.cr.mrapp.entity.Admin;
import com.cr.mrapp.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl  implements AdminService {
    @Autowired
    private AdminDao adminDao = null;

    @Override
    public Admin login(String username, String password) {

        Admin admin = adminDao.selectByUsernameAndPassword(username,password);
        return admin;
    }
}
